import { Component } from '@vue/runtime-core'
import LayoutSub from '@/components/layout/LayoutSub.vue'
import { CustomRouteRecordRaw } from '@/types/router'

const create: Array<CustomRouteRecordRaw> = [
  {
    path: '/create',
    name: 'create',
    component: LayoutSub,
    redirect: '/create/index',
    hidden: true,
    meta: {
      title: '我的设计',
      permission: [1, 2, 3, 4, 5, 6]
    },
    children: [
      {
        path: '/create/index',
        name: 'CreateIndex',
        component: (): Component => import('@/views/create/Index.vue'),
        icon: 'home',
        meta: {
          title: '我的设计',
          permission: true,
          default: [1, 2, 3, 4, 5, 6]
        }
      },
      {
        path: '/create/step1',
        name: 'CreateStep1',
        component: (): Component => import('@/views/create/First.vue'),
        icon: 'home',
        hidden: true,
        meta: {
          title: '我的设计',
          permission: true,
          default: [1, 2, 3, 4, 5, 6]
        }
      },
      {
        path: '/create/step2',
        name: 'CreateStep2',
        component: (): Component => import('@/views/create/Second.vue'),
        icon: 'home',
        hidden: true,
        meta: {
          title: '我的设计',
          permission: true,
          default: [1, 2, 3, 4, 5, 6]
        }
      }
    ]
  }
]

export default create
